'use strict';

/**
 * Created by twer on 15/2/24.
 */

/**
 * 回收站查询
 */
angular.module('blog').factory('BlogRecycleQueryService', ['$resource', 'RootPathConstant',
    function ($resource, RootPathConstant) {
        return $resource(RootPathConstant + '/blog/recycle_bin/author/:author', {},
            {query: {method: 'GET'}}
        );
    }]
);

/**
 * 回收站增加和恢复
 */
angular.module('blog').factory('BlogRecycleManageService', ['$resource', 'RootPathConstant',
    function ($resource, RootPathConstant) {
        return $resource(RootPathConstant + '/blog/recycle_bin/:blogId', {},
            {
                add:     {method: 'POST'},
                restore: {method: 'DELETE'}
            }
        );
    }]
);
